package com.zzh.bc.model;

import com.zzh.bc.annotations.HColumn;

public class UserModel {
    public static final String TABLE_NAME="zh_user";
    public static final String SQL_COLUMNS = "user_id, user_name, password, avatar, created_by,created_time,updated_by,updated_time";
    @HColumn(columnName = "user_id")
    private String userId;
    /**
     *
     */
    @HColumn(columnName = "user_name")
    private String userName;
    /**
     *
     */
    @HColumn(columnName = "password")
    private String password;
    /**
     *
     */
    @HColumn(columnName = "avatar")
    private String avatar;
    /**
     * 创建人
     */
    @HColumn(columnName = "created_by")
    private String createdBy;
    /**
     * 创建时间
     */
    @HColumn(columnName = "created_time")
    private Long createdTime;
    /**
     * 更新人
     */
    @HColumn(columnName = "updated_by")
    private String updatedBy;
    /**
     * 更新时间
     */
    @HColumn(columnName = "updated_time")
    private Long updatedTime;

    public String getUserId() {
        return userId == null ? "" : userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName == null ? "" : userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password == null ? "" : password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatar() {
        return avatar == null ? "" : avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getCreatedBy() {
        return createdBy == null ? "" : createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Long getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Long createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return updatedBy == null ? "" : updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Long getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Long updatedTime) {
        this.updatedTime = updatedTime;
    }
}
